#include <stdio.h>
#include <iostream>
#include <vector>
using namespace std;

int finalValueAfterOperations(vector<string>& operations) {
    int ans = 0;
    for(int i=0;i<operations.size();++i){
        if(operations[i] == "++X" || operations[i] == "X++"){
            ans += 1;
        } else {
            ans -= 1;
        }
    }
    return ans;
}

int main() {
    return 0;
}